Skip to main content

New-IMNotification

SYNOPSIS​

Sends a notification to a specific Immich user

SYNTAX​

New-IMNotification [[-Session] <ImmichSession>] [-UserId] <String> [-Title] <String> [[-Description] <String>]
[[-Level] <String>] [[-Type] <String>] [[-Data] <Hashtable>] [-ProgressAction <ActionPreference>]
[<CommonParameters>]

DESCRIPTION​

Creates a notification in the notification inbox of a user on the Immich server. This is an administrator operation. Only the parameters you specify are sent, so Immich applies its own defaults for the rest.

EXAMPLES​

EXAMPLE 1​

New-IMNotification -UserId 'bde7ceba-f301-4e9e-87a2-163937a2a3db' -Title 'Maintenance tonight'

Sends a notification with the specified title to the user.

EXAMPLE 2​

New-IMNotification -UserId 'bde7ceba-f301-4e9e-87a2-163937a2a3db' -Title 'Backup failed' -Level error -Type BackupFailed -Description 'Check the server log.'

Sends an error notification describing a failed backup.

PARAMETERS​

-Session​

Optionally define an Immich session object to use. This is useful when you are connected to more than one Immich instance.

Type: ImmichSession
Parameter Sets: (All)
Aliases:

Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-UserId​

The UUID of the user to send the notification to.

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Title​

The title of the notification.

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Description​

Optional description text shown with the notification.

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 4
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Level​

The severity of the notification: success, error, warning or info.

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 5
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Type​

The notification type. Use Custom for messages created by an administrator.

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 6
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Data​

Optional additional data attached to the notification as a hashtable.

Type: Hashtable
Parameter Sets: (All)
Aliases:

Required: False
Position: 7
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-ProgressAction​

{{ Fill ProgressAction Description }}

Type: ActionPreference
Parameter Sets: (All)
Aliases: proga

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters​

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS​

OUTPUTS​

NOTES​

EDIT THIS DOC​

This page was auto-generated from PowerShell comment-based help. To edit this page, update the corresponding command help in the module source repository.